const fs = require("fs");

fs.writeFile("./data/1.txt", "你好！", (err, res) => {
    if (err) {
        console.log("读取图片错误");
        console.log(err);
    } else {
        console.log("读取图片成功");
        console.log(res);
    }
})